package com.wish.g01.base.config;

import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @Classname DruidConfig
 * @Description TODO
 * @Version 1.0.0
 * @Date 2022/6/7 15:57
 * @Created by wupenghao
 */
@Configuration
public class DruidConfig {

    @PostConstruct
    public void init(){
        // 处理 discard long time none received connection
        System.setProperty("druid.mysql.usePingMethod", "false");
    }


}
